#include "Primitive.h"



Vertex::Vertex()
{

}

Vertex::~Vertex()
{

}

Edge::Edge()
{

}

Edge::~Edge()
{

}

Triangle::Triangle()
{

}

Triangle::~Triangle()
{

}

void Triangle::setArea()
{
	vec3f a, b;

	a = vertices[1]->position - vertices[0]->position;
	b = vertices[2]->position - vertices[0]->position;

	this->area = (a ^ b).Length() * 0.5;// CrossProduct(a,b).length() * 0.5;

}
